
SRCS := $(wildcard *.c)
OBJS := $(SRCS:.c=.o)
PROGS := $(OBJS:%.o=$(OutputDir)/myprog_%) 
all : $(PROGS) 

$(PROGS): $(OBJS)  $(OutputDir)/libme.a

.PHONY: all clean
clean:
	-rm $(OBJS)  $(PROGS)

%.o : %.c
	$(CC) $(CFLAGS) -I../lib -c  $<

$(OutputDir)/myprog_% : %.o
	$(CC) $(LDFLAGS)  -o $@ $< -L../output -lme
